package com.miyake.client.community;

import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.miyake.client.tools.ImageListElement;
import com.miyake.client.tools.ImageList.CommunityListHandler;

public class CommunityListDialog extends DialogBox {

	public CommunityListDialog() {
		
		VerticalPanel verticalPanel = new VerticalPanel();
		setWidget(verticalPanel);
		verticalPanel.setSize("100%", "100%");
		PrivateCommunityList privateCom = new PrivateCommunityList() {

			@Override
			protected boolean canCreate() {
				// TODO Auto-generated method stub
				return false;
			}

			@Override
			protected boolean canFind() {
				// TODO Auto-generated method stub
				return false;
			}
			
		};
		privateCom.addCommunityListHandler(new CommunityListHandler() {

			@Override
			public void onSelect(ImageListElement community) {
				hide(false);
			}

			@Override
			public void onCreate(String name) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void onDelete(String name) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void onFind() {
				// TODO Auto-generated method stub
				
			}
			
		});
		verticalPanel.add(privateCom);
		
		PublicCommunityList publicCom = new PublicCommunityList() {

			@Override
			protected boolean canCreate() {
				// TODO Auto-generated method stub
				return false;
			}

			@Override
			protected boolean canFind() {
				// TODO Auto-generated method stub
				return false;
			}
			
		};
		publicCom.addCommunityListHandler(new CommunityListHandler() {

			@Override
			public void onSelect(ImageListElement community) {
				hide(false);
			}

			@Override
			public void onCreate(String name) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void onDelete(String name) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void onFind() {
				// TODO Auto-generated method stub
				
			}
			
		});
		verticalPanel.add(publicCom);
	}


}
